package com.lvmama.pangolin.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lvmama.pangolin.entity.ConvertTask;
import com.lvmama.pangolin.mybatis.mapper.ConvertTaskMapper;
import com.lvmama.pangolin.service.ConvertTaskService;

@Transactional
@Service
public class ConvertTaskServiceImpl implements ConvertTaskService
{
	@Autowired
	private ConvertTaskMapper convertTaskMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id)
	{
		return convertTaskMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ConvertTask record)
	{
		return convertTaskMapper.insert(record);
	}

	@Override
	public int insertSelective(ConvertTask record)
	{
		return convertTaskMapper.insertSelective(record);
	}

	@Override
	public ConvertTask selectByPrimaryKey(Integer id)
	{
		return convertTaskMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ConvertTask record)
	{
		return convertTaskMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ConvertTask record)
	{
		return convertTaskMapper.updateByPrimaryKey(record);
	}
	public List<ConvertTask> queryByLimitNum(Map<String,Object> map){
		return convertTaskMapper.queryByLimitNum(map);
	}
	public int updateByMap(Map<String,Object> map){
		return convertTaskMapper.updateByMap(map);
	}
	public List<ConvertTask> queryByMap(Map<String,Object> map){
		return convertTaskMapper.queryByMap(map);
	}
	public int updateRunningStatus(){
		return convertTaskMapper.updateRunningStatus();
	}
}
